import {defineStore} from "pinia";

/**
 * 租户store
 */
export const menuStore = defineStore('menu', {
    state: () => ({
        menuEditOpen: false,
        menuInsertOpen: false,
        updateMenuId:0,
        menuId: 0
    }),
    actions: {
        setMenuEditOpen(value: boolean) {
            this.menuEditOpen = value
        },
        setMenuInsertOpen(value: boolean) {
            this.menuInsertOpen = value
        },
        setMenuId(value: number) {
            this.menuId = value
        },
        setUpdateMenuId(value: number) {
            this.updateMenuId = value
        }
    }, getters: {}
})